<?php namespace Zmsun\View\Module\Param;class Text extends AParam{public function getValue(){return trim($this->xmlElement);}public function setValue($value){$this->xmlElement[0]=$value;}public function getHtml(){$label=$this->getAttribute('label');$name=$this->getAttribute('name');$tips=$this->getTipsHtml($this->getAttribute('description'));$value=htmlspecialchars($this->getValue());return <<<S
<div class="control-group">
	<label class="control-label" for="">{$label}</label>
	<div class="control">
		<input class="input-box" type="text" autocomplete="off" name="{$name}" value="{$value}">
		{$tips}
	</div>
</div>
S;
}}?>